<template>
	<view class="logistics">
		<logistics :wlInfo="wlInfo"></logistics>
	</view>
</template>

<script>
	import logistics from '@/components/xinyu-logistics/xinyu-logistics.vue'
	export default {
		data() {
			return {
				wlInfo: {
					delivery_status: 1, //快递状态 1已签收 2配送中
					post_name: '韵达快递', //快递名称
					logo: 'https://cdn.kuaidi100.com/images/all/56/yunda.png', //快递logo
					exp_phone: '95546', //快递电话
					post_no: '4304678557725', //快递单号
					addr: '江西省南昌市青云谱区', //收货地址
					list: [],
				}
			};
		},
		onLoad(e) {
			this.init(e.data)
		},
		components: {
			logistics
		},
		methods: {
			init(id) {
				this.$request("Order/QueryKuaidi", {
					data: {
						id:id,
						// id:168,
					},
					isLoad: false
				}).then(res => {
					if(res.result.returnCode == 401){
						
					}else{
						this.wlInfo.list =res.result.data
					}
				})
			}
		}
	}
</script>

<style lang="scss">

</style>
